dimensionality reduction and then similarity search